package com.tsign.module.lib.core.base;

/**
 * BasePresenter基类
 *
 * @author amosLv
 * @date 2019/07/16
 */
public class BasePresenter<T extends BaseContract.BaseView> implements BaseContract.BasePresenter<T> {

    public BasePresenter() {
    }

    public T mView = null;

    @Override
    public void attachView(T view) {
        this.mView = view;
    }

    @Override
    public void detachView() {
        mView = null;
    }

    @Override
    public boolean isViewAttached() {
        return (mView != null);
    }

}